package com.njwb.day09.ens;

public class HeroType {
    private String typeName ;
    private HeroType(){}
    public String getTypeName() {
        return typeName;
    }
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
    private HeroType(String typeName) {
        this.typeName = typeName;
    }
    //定义有限个对象
    public static final HeroType MAGE = new HeroType("法师");
    public static final HeroType WARRIOR = new HeroType("战士");
    public static final HeroType TANK = new HeroType("坦克");
    public static final HeroType ASSISTANCE = new HeroType("辅助");
    public static final HeroType GANKING = new HeroType("法师");
    public static final HeroType SHOOTER = new HeroType("射手");
}
